[XENOPROFILE] Fix incorrect use of on_each_cpu() which could lead
authorkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 16 May 2006 08:08:06 +0000 (09:08 +0100)
committerkaf24@firebug.cl.cam.ac.uk <kaf24@firebug.cl.cam.ac.uk>
Tue, 16 May 2006 08:08:06 +0000 (09:08 +0100)
commit28978ff92ad4e47c0a2a96680243422ab749cfb8
tree4cafb87de3ee05064dc08a745677c3edf6bc4a37
parent395112e684108eadf6a20f3f0bfb5227a142c7aa
[XENOPROFILE] Fix incorrect use of on_each_cpu() which could lead
to sleep with interrupts disabled. on_each_cpu() disables interrupts.
proc_create() calls passes GFP_KERNEL to kmalloc().

The patch converts from on_each_cpu() to for_each_cpu(), and then
simplifies things.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
linux-2.6-xen-sparse/arch/i386/oprofile/xenoprof.c